package com.pand.model.vehicle;

import com.pand.model.BaseObject;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 *
 * @ClassName: BaseVehicle
 * @Description:车辆基础信息表
 * @author huxm
 * @date 2016年4月13日 上午10:18:16
 *
 */
@Entity
@Table(name = "RES_VEHICLE_BASE")
@SequenceGenerator(name = "SeqVehicleBase", sequenceName = "SEQ_VEHICLE_BASE", allocationSize = 1)
public class BaseVehicle extends BaseObject {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 车牌号
	 */
	private String license;

	/**
	 * 车牌颜色
	 */
	private Integer licenseColor;

	/**
	 * 车辆颜色
	 */
	private Integer vehicleColor;

	/**
	 * 车辆类型id
	 */
	private Long vehicleTypeId;

	/**
	 * 发动机编号
	 */
	private String motorCode;

	/**
	 * 车架号
	 */
	private String vinCode;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 车辆变更人
	 */
	private String vehicleOperator;

	/**
	 * 车辆变更时间
	 */
	private Timestamp updateTime;

	/**
	 * 创建人
	 */
	private String createOperator;

	/**
	 * 创建时间
	 */
	private Timestamp createTime;

	/**
	 * 组织机构
	 */
	private Long orgId;

	/**
	 * 设备号
	 */
	private String equipmentNumber;

	@Id
	@GeneratedValue(generator = "SeqVehicleBase")
	@Column(name = "ID")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "license")
	public String getLicense() {
		return license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	@Column(name = "license_color")
	public Integer getLicenseColor() {
		return licenseColor;
	}

	public void setLicenseColor(Integer licenseColor) {
		this.licenseColor = licenseColor;
	}

	@Column(name = "vehicle_color")
	public Integer getVehicleColor() {
		return vehicleColor;
	}

	public void setVehicleColor(Integer vehicleColor) {
		this.vehicleColor = vehicleColor;
	}

	@Column(name = "vehicle_type_id")
	public Long getVehicleTypeId() {
		return vehicleTypeId;
	}

	public void setVehicleTypeId(Long vehicleTypeId) {
		this.vehicleTypeId = vehicleTypeId;
	}

	@Column(name = "motor_code")
	public String getMotorCode() {
		return motorCode;
	}

	public void setMotorCode(String motorCode) {
		this.motorCode = motorCode;
	}

	@Column(name = "vin_code")
	public String getVinCode() {
		return vinCode;
	}

	public void setVinCode(String vinCode) {
		this.vinCode = vinCode;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "vehicle_operator")
	public String getVehicleOperator() {
		return vehicleOperator;
	}

	public void setVehicleOperator(String vehicleOperator) {
		this.vehicleOperator = vehicleOperator;
	}

	@Column(name = "update_time")
	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "create_Operator")
	public String getCreateOperator() {
		return createOperator;
	}

	public void setCreateOperator(String createOperator) {
		this.createOperator = createOperator;
	}

	@Column(name = "create_Time")
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	@Column(name = "ORGANIZATION_ID")
	public Long getOrgId() {
		return orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	@Column(name = "equipment_number")
	public String getEquipmentNumber() {
		return equipmentNumber;
	}

	public void setEquipmentNumber(String equipmentNumber) {
		this.equipmentNumber = equipmentNumber;
	}
}
